 /*
 Kyle Kelly
 CS2110-B2 HW8
 Main file for first GBA program
 */
#include "mylib.h"

#define BUTTONS (*(unsigned int *) 0x04000130)

extern u16 * videoBuffer;

int main(){

	REG_DISPCNT = MODE | BG2_ENABLE;
	
	drawRect(50,50,20,20,RGB(0 , 31 ,31));
	
	for(int r = 60; r<120; r++)
	{
		for(int c = 200; c<220; c++)
		{ 
			setPixel(r,c,RGB(0,31,0));
		}
	}
	
	setPixel(40, 70, RGB(31,31,31));
	setPixel(25, 85, RGB(31,10,10));
	drawRect(70,70, 130,30, RGB(31,0,0));
	
	while(1);
}
